﻿using SD.Entity;
using SD.Entity.Enum;
using SD.Interface.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SD.UI.Controllers
{
    public class HomeController : Controller
    {
        private IActionInfoService _actionInfoService;
        private IUserInfoService _userInfoService;

        public HomeController(IActionInfoService actionInfoService, IUserInfoService userInfoService)
        {
            _actionInfoService = actionInfoService;
            _userInfoService = userInfoService;
        }
        //
        //GET: /Home/
        //登陆过后显示的主要菜单权限
        public ActionResult Index()
        {
            //UserInfo loginUser = _userInfoService.GetUserInfo(1);
            ////查询用户的菜单权限
            //int actionInfoTypeEnum = (int)ActionInfoTypeEnum.MenuActionTypeEnum;
            //ViewBag.MenuList = _actionInfoService.QueryActionListByUserId(loginUser.Id, actionInfoTypeEnum);
            
            return View("Index2");
        }

    }
}
